<?php
use think\facade\Route;
use think\middleware\AllowCrossDomain;

Route::post('login','User/login')->middleware([app\api\middleware\User::class]);
Route::get('test','User/test')->allowCrossDomain();

Route::post('ck','User/checkcape')->allowCrossDomain();
Route::group('product',function(){
    Route::get('list','Product/list');
    Route::get('info/:id','Product/getinfo');
})->middleware([app\api\middleware\Product::class])->cache(3600);


